<?php

namespace App\Models\Shop;

use App\Models\BaseModel;

/**
 * @title 寄售区模型
 * Class ShopGoodsEntrustModel
 * @package App\Models\Shop
 */
class ShopGoodsEntrustModel extends BaseModel
{
    protected $table = 'shop_goods_entrust';

    protected $primaryKey = 'id';

    public $dateFormat = 'U';

    public function goods()
    {
        return $this->belongsTo('App\Models\Shop\ShopGoodsModel','goods_id','goods_id');
    }

    public function user()
    {
        return $this->belongsTo('DC\UserCenter\Models\UserBaseModel','user_id','member_id');
    }

}
